package nl.saxion.act.playground;

import android.util.Log;

public class GameObject {
	/**
	 * @author Jan Stroet Each game object has a tile visualization
	 * 
	 *         Every game object should inherit from this class
	 * 
	 */

	/* tileId: id of the bitmap, the object is associated with */

	private int tileId;
	private boolean isFinished = false;
	private boolean isEndGameFinished = false;

	public boolean isFinished() {
		return isFinished;
	}

	public void setFinished(boolean isFinished) {
		this.isFinished = isFinished;
		Log.d("Debug", "Finished set to: " + this.isFinished());
	}

	/**
	 * Initializes GameObject the bitmap, the object is associated with
	 * 
	 * @param itsTile
	 *            id of
	 */
	public GameObject(int itsTile) {
		tileId = itsTile;
	}

	/**
	 * 
	 * @return id of the bitmap, the object is associated wit
	 */
	public int getTileId() {
		return tileId;
	}

	public boolean isVeryFinished() {
		return isEndGameFinished;
	}

	public void setEndGameFinished(boolean isEndGameFinished) {
		this.isEndGameFinished = isEndGameFinished;
	}
}
